package com.example.log.alarm.web;

import com.example.log.alarm.repository.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: spring-agent
 * @description:
 * @author: zt22328 赵儒定
 * @create: 2023-05-10 17:29
 **/
@RestController
public class LogController {

    @Resource
    Repository repository;

    @GetMapping("/getLogInfos")
    public Object getLogInfos() {
        return repository.getLogInfos();
    }

    @GetMapping("/getThrowableInfoList")
    public Object getThrowableInfoList() {
        return repository.getThrowableInfoList();
    }

    @GetMapping("/getThrowableStackTraces")
    public Object getThrowableStackTraces() {
        return repository.getStackTraces();
    }
}
